Nav Item Link "Home" => "index.php?P=Home", "Browse" => "index.php?P=BrowseResources", "About" => "about", ]; # required CSS and JavaScript files # NOTES: # - Override (e.g.Metavus-Override.css) files will also be loaded, # if available, and should be used for modifications when creating # custom interfaces. # - For CSS files, a ".scss" version of the file will also be searched # for, and if found will be compiled and used in place of any ".css" # version. # - jQuery JavaScript files must be loaded before Metavus JavaScript files. $InterfaceFiles = [ "jQuery.js", "bootstrap.js", "jquery-migrate.js", "jquery-ui.js", "bootstrap.css", "jquery-ui.css", "Metavus.css", "CW-Confirm.js", "CW-Base.js", ]; # image (SVG) files loaded inline (later within HTML) $InlineFiles = [ "FacebookLogo.svg", "InstagramLogo.svg", "MagnifyingGlass.svg", "Meeple.svg", "TwitterLogo.svg", ]; # ----- SETUP ---------------------------------------------------------------- # initialize some convenience variables $AF = ApplicationFramework::getInstance(); $SysConfig = SystemConfiguration::getInstance(); $BaseUrl = ApplicationFramework::baseUrl(); $IsLoggedIn = User::getCurrentUser()->isLoggedIn(); $PageNameInLC = strtolower($AF->getPageName()); # mark files loaded inline to not have fingerprints added to their names foreach ($InlineFiles as $InlineFile) { $AF->doNotUrlFingerprint($InlineFile); } # drop browse from nav items if no viewable Tree fields available $Schema = new MetadataSchema(MetadataSchema::SCHEMAID_DEFAULT); if (!$Schema->aFieldIsViewableOfType(MetadataSchema::MDFTYPE_TREE)) { unset($PrimaryNavItems["Browse"]); } # give plugins etc a chance to modify main nav $SignalResult = $AF->SignalEvent( "EVENT_MODIFY_PRIMARY_NAV", ["NavItems" => $PrimaryNavItems] ); $PrimaryNavItems = $SignalResult["NavItems"]; # set character set for interface $AF->addMetaTag(["charset" => $SysConfig->getString("DefaultCharacterSet")]); # set logo area content $PortalName = trim($SysConfig->getString("PortalName")); if (strlen($PortalName) == 0) { $LogoAreaContent = "gUIFile("MetavusLogo.svg")."\" alt=\"\">"; } else { $LogoAreaContent = $PortalName; } # ----- MAIN ----------------------------------------------------------------- # (NOTE: there must not be any whitespace in HTML output before the DOCTYPE) ?>
includeUIFile($InterfaceFiles); ?> SignalEvent("EVENT_IN_HTML_HEADER"); ?>
Skip to main content